<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>豆瓣仿</title>
    <link href="./imgs/favicon.ico" rel="shortcut icon" type="image/x-icon" />

    <style>
      /* reset begin */
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      img,
      input,
      button {
        border: none;
      }
      button,
      input {
        outline: none;
      }
      button {
        display: block;
      }
      /* reset end */
      /* css helper begin */
      .rounded {
        border-radius: 2px;
      }
      /* css helper end */
      :root {
        --primary: #41ac52;
      }
      .container {
        display: flex;
        align-items: center;
        width: 100vw;
        height: 304px;
        background-image: url(./imgs/loginLogo.jpg);
        background-size: contain;
        background-position: calc(50% - 305px) top;
        background-repeat: no-repeat;
        background-color: #edf4ed;
      }
      .form {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: 60%;
        width: 300px;
        padding: 30px 10px 10px;
      }
      .form > div {
        margin-bottom: 10px;
        width: 100%;
      }
      .tel-or-email input,
      .password input {
        width: 100%;
        padding: 8px;
        background-color: #fff;
        border: 1px solid #e4e6e5;
        outline: none;
      }
      .form .login {
        display: grid;
        place-items: center;
        padding: 8px;
        margin-bottom: 10px;
        width: 100%;
        background-color: var(--primary);
        color: #fff;
        font-size: 13px;
        user-select: none;
      }
      .form .options {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        user-select: none;
      }
      .rember {
        display: flex;
        align-items: center;
      }
      .rember input {
        margin-right: 4px;
      }
      .options .register {
        color: var(--primary);
      }
      .login,
      .options .register,
      .rember input,
      .rember label {
        cursor: pointer;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="form">
        <div class="tel-or-email">
          <input class="rounded" type="text" placeholder="手机号/邮箱" />
        </div>
        <div class="password">
          <input class="rounded" type="text" placeholder="密码" />
        </div>
        <button class="login rounded">登录豆瓣</button>
        <div class="options">
          <div class="rember">
            <input type="checkbox" id="rember" />
            <label for="rember">下次自动登录</label>
          </div>
          <div class="register">注册账号</div>
        </div>
      </div>
    </div>
  </body>
</html>
